<seed-content>
  <div class="seed-sku-buy" *ngIf="crowdSku">
    <div class="sku-buy-close" (click)="closeSku()"></div>
    <div class="sku-list" *ngFor="let item of crowdSku">
      <div class="sku-name-price">
        <p>{{item.rightName | truncate:10}}</p>
        <p>¥{{(item.price/100).toFixed(2)}}</p>
      </div>
      <div class="sku-info">
        <p>还剩: {{item.rightStock || 0}}个</p>
        <p>权益详细描述：{{item.rightDesc || '无'}}</p>
      </div>
      <div class="sku-limit-num">
        <div class="border-bottom-scaleY border-top-scaleY">
          <p>购买数量{{item.buyTimesLimit?'(限购'+item.buyTimesLimit+'个)':'(不限购)'}}</p>
          <seed-counter [max]="item.buyTimesLimit==0?item.rightStock:((item.rightStock>item.buyTimesLimit)?item.buyTimesLimit:item.rightStock)"
                        (onSelected)="skuNumber($event)"
          ></seed-counter>
        </div>
      </div>
      <div class="sku-submit">
        <button
          (click)="goToConfirmOrder(item.skuCode,'V20')"
          [disabled]="crowdLaunch || item.rightStock == 0"
        >支持ta</button>
      </div>
    </div>
  </div>
</seed-content>


